class Home extends eui.Component {
	private parentContainer: eui.UILayer;
	private btn_entry_room: eui.Button;
	private btn_full_screen: eui.Button;

	public constructor(parent: eui.UILayer) {
		super();
		this.skinName = "HomeSkin";
		this.parentContainer = parent;
		this.btn_entry_room.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showTable, this);
		//this.btn_full_screen.addEventListener(egret.TouchEvent.TOUCH_TAP, this.fullScreen, this);
	}

	private showTable(): void {
		this.parentContainer.removeChild(this);
		let table = new Table(this.parentContainer);
		this.parentContainer.addChild(table);
	}

	private fullScreen(): void {
		let element: any;
		element = document.documentElement;
		if (element.requestFullScreen) {
			element.requestFullScreen();
		} else if (element.mozRequestFullScreen) {
			element.mozRequestFullScreen();
		} else if (element.webkitRequestFullScreen) {
			element.webkitRequestFullScreen();
		}
	}
}